// node中的事件event
let event = require('events')
let ee = new event.EventEmitter()


ee.on('click', function(){
    console.log('1.吃夜宵')
})
ee.on('click', function(){
    console.log('2.打王者')
})
ee.on('click', function(){
    console.log('3.看书')
})



ee.emit('click')